Ext.define('Admin.view.emergencyDispatch.NewPlanViewModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.newPlan',
    data: {
        curList: ''
    },

    formulas: {
        datype: function(get) {
            var data = get('curList').daType;
            var result = getValue('datype', data);
            return result;
        },

        rnm: function(get) {
            var data = get('curList').rcd;
            var result;
            mriverList.forEach(function(item) {
                if (item.rcd == data) {
                    result = item.rnm
                }
            })
            return result;
        }
    }
});